package com.antdesignbackend.backend.district.mapper;

import com.antdesignbackend.backend.district.entity.District;
import com.antdesignbackend.backend.district.entity.entityVo.DistrictVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

import java.util.List;


/**
 * 区县管理
 * @author 不二
 * @email jack.com
 * @date 2020-07-21 17:56:51
 */
@Component
public interface DistrictMapper extends BaseMapper<District>{
    List<DistrictVo> search(@Param(Constants.WRAPPER) QueryWrapper<DistrictVo> queryWrapper, Page<DistrictVo> page);
    Integer count(@Param(Constants.WRAPPER) QueryWrapper<DistrictVo> queryWrapper);
}
